<div class="jumbotron">
  <div class="container">
    <p class="lead">矿池总算力: {{format-hashrate model.hashrate}}.</p>
    <strong><i class="fa fa-users" style="width:25px;"></i>矿池在线矿工数量:</strong> <span class="label label-info">{{model.minersTotal}}</span>
    <strong><i class="fa fa-tv" style="width:35px;padding-left:10px"></i>矿池在线矿机数量:</strong> <span class="label label-info">{{model.machinesTotal}}</span>
  </div>
</div>
<div class="container">
  {{#if model.miners}}
  <h4>矿工列表</h4>
  <div class="table-responsive">
    <table class="table table-condensed table-striped">
      <thead>
        <tr>
          <th>矿工地址</th>
          <th>算力</th>
          <th>在线矿机数量</th>
          <th>未支付贡献</th>
        </tr>
      </thead>
      <tbody>
        {{#each model.miners as |m|}}
        <tr class="{{if m.offline "warning"}}">
          <td>{{m.login}}</td>
          <td>{{format-hashrate m.hr}}</td>
          <td>{{format-number m.machinesCount}}</td>
          <td>{{format-number m.unpaidShares}}</td>
        </tr>
        {{/each}}
      </tbody>
    </table>
  </div>
  {{else}}
  <h3>No miners</h3>
  {{/if}}
</div>
